package com.aboverock.module.system.domain;

import com.aboverock.common.enums.UserTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 登录用户类.
 * </p>
 *
 * @author Rock Wang
 * @since 2018-11-07
 */
@ApiModel(value = "LoginUser对象", description = "")
public class LoginUser {

    @ApiModelProperty(value = "登录帐号")
    @NotBlank
    private String loginName;

    @ApiModelProperty(value = "密码")
    @NotBlank
    private String password;

    /** 默认为AD域帐号. */
    @ApiModelProperty(value = "帐号类型 0：AD域帐号，1：本地帐号，默认为AD域帐号")
    private Integer type = UserTypeEnum.AD.getValue();

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "User{" + "loginName=" + loginName + ", password=" + password + ", type=" + type
                + "}";
    }

}
